package com.ck.jdbc.util;

/**
 * 内部单例模式来维护我们的线程池对外提供服务
 * @author CK
 *
 */
public class PoolManager {
	private static class createPool{
		private static MyPoolImpl poolImpl = new MyPoolImpl();
	}
	
	public static MyPoolImpl getInstace() {
		return createPool.poolImpl;
	}
	/*

	private static class createPool{
		private static MyPoolImpl poolImpl = new MyPoolImpl();
	}
	
	*//**
	 * 多线程环境下加载内部类的时候是互斥的
	 * 内部类加载原理
	 * @return
	 *//*
	public static MyPoolImpl getInstace() {
		return createPool.poolImpl;
	}
*/}
